<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>Untitled Page</title>
    <script type="text/javascript">

function SetHtml()
{
	var oDoc = window.frames[ 'xEditorArea' ].document ;

	oDoc.open() ;

	oDoc.write( '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' ) ;

	oDoc.write( '<html>' ) ;
	oDoc.write( '<head><title></title>' ) ;
	oDoc.write( '</head><body>' ) ;
	oDoc.write( 'Time: <b>' + new Date() + '</b>' ) ;
	oDoc.write( '</body></html>' ) ;

	oDoc.close() ;
}

    </script>
</head>
<body>
	<iframe id="xEditorArea" name="xEditorArea" src="about:blank" width="100%" height="400" style="border: #000000 1px solid;">
	</iframe>
	<hr />
	<input type="button" value="Set HTML" onclick="SetHtml();" />
</body>
</html>
